<?php
/*
Copyright (C) 2009 de Flotte Maxence

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
?>
<?php

class Zlog_writeArticle extends Bout {
	

	protected function construct() {
	
		//Constructeur

			//Ouverture et definition des valeur par défaut du fichier de configuration
	
	}
	
	public function build() {
		$this->getIO()->need('name');
		$this->getIO()->need('body');
		$this->getIO()->enablePreviewButton();
		if($this->getIO()->isPreview()) {
			$return = '
		<div class=IOFormView>
			'.$this->getIO()->get('body')->out().'
		</div>';
		}
		else
			$return = '';
		//Création d'enfant de type article autorisé au propriétaire du label.
			$this->getIO()->allowEbToCreateChildren("commentary");
		return $return.$this->getIO()->getForm();
	}

	public function buildStatic() {}
}

?>